<?php

$action = getAction();

switch ($action) {
	case "index":
		$user = $db->getRow("select * from " . table("user") . " where openid = '$openid'");
		
		$smarty->assign("user", $user);
		$smarty->display("user.html");
		break;
}
?>